home *** CD-ROM | disk | FTP | other *** search
/ Ray Dream Studio 5 / Ray Dream.iso / pc / DreamSDK / Windows / SAMPLES / PRIMITIV / TPOT / TPOTFAC.H < prev   
Encoding:
C/C++ Source or Header  |  1997-07-11  |  744 b   |  31 lines

  1. // Copyright (c)1995 Ray Dream, Inc. All Rights Reserved.
  2. /* $Id: TPotFac.h 1.1 1996/07/19 00:11:03 Damien Exp $ */
  3.  
  4. #ifndef __TPOTFAC__
  5. #define __TPOTFAC__  
  6.  
  7. #ifndef __I3DEX__
  8. #include "I3dEx.h"
  9. #endif
  10.  
  11. // Teapot Class Factory :
  12. class TeapotClassFactory : public IClassFactory {
  13. public:
  14.   TeapotClassFactory(void);
  15.   ~TeapotClassFactory(void);
  16.  
  17.   //IUnknown members
  18.   STDMETHODIMP         QueryInterface(REFIID, LPVOID FAR*);
  19.   STDMETHODIMP_(ULONG) AddRef(void);
  20.   STDMETHODIMP_(ULONG) Release(void);
  21.  
  22.   //IClassFactory members
  23.   STDMETHODIMP         CreateInstance(LPUNKNOWN, REFIID, LPVOID*);
  24.   STDMETHODIMP         LockServer(BOOL);
  25. protected:
  26.   ULONG           m_cRef;
  27.   };                         
  28.  
  29. #endif
  30.  
  31.